package org.sample.springbootactivemq.queue;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

@Component
public class MessageReceiver {

	private static final Logger LOGGER = LoggerFactory.getLogger(MessageReceiver.class);

	@JmsListener(destination = "textQueue")
	public void receive(String message) {
		LOGGER.info("Received text: {}", message);
	}

}
